<?php
namespace app\json\controller;

use think\Db;

class Test
{
<<<<<<< HEAD
    public function exp(){
        $rs = Db::name('experience e')
        ->join('user u','e.uid=u.uid')
        ->field('etitle,eintro, etime,uname,upic')
        ->where('estatus', 1)
        ->select();
        return json_encode($rs);
    }

    public function userDetail(){
        $uid = input('uid');
        // if($uid==null){
        //     return json_encode(['error'=>'1','msg'=>'请传入参数']);
        // }
        $rs = Db::name('user')->where('uid', $uid)->find();
        return json_encode($rs);
    }

    //login
    

=======
    public function Test(){
        return 1;
    }
>>>>>>> ed22c6aecd92afbdf10d7e85ef3e0aecb2234259
}